package com.group5.onlinegame.entity;

import java.sql.Timestamp;

public class User {
    private Integer id;
    private String username;
    private String nickname;
    private String password;
    private String photo;
    private Integer experience;
    private Integer golds;
    private Integer ingots;
    private Timestamp regtime;
    private Integer status;
    private Vip vip;
    private UserRole userRole;
    private Roles roles;

    public Roles getRoles() {
        return roles;
    }

    public void setRoles(Roles roles) {
        this.roles = roles;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Integer getExperience() {
        return experience;
    }

    public void setExperience(Integer experience) {
        this.experience = experience;
    }

    public Integer getGolds() {
        return golds;
    }

    public void setGolds(Integer golds) {
        this.golds = golds;
    }

    public Integer getIngots() {
        return ingots;
    }

    public void setIngots(Integer ingots) {
        this.ingots = ingots;
    }

    public Timestamp getRegtime() {
        return regtime;
    }

    public void setRegtime(Timestamp regtime) {
        this.regtime = regtime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Vip getVip() {
        return vip;
    }

    public void setVip(Vip vip) {
        this.vip = vip;
    }

    public UserRole getUserRole() {
        return userRole;
    }

    public void setUserRole(UserRole userRole) {
        this.userRole = userRole;
    }

    public User() {
    }

    public User(Integer id, String username, String nickname, String password, String photo, Integer experience, Integer golds, Integer ingots, Timestamp regtime, Integer status, Vip vip, UserRole userRole, Roles roles) {
        this.id = id;
        this.username = username;
        this.nickname = nickname;
        this.password = password;
        this.photo = photo;
        this.experience = experience;
        this.golds = golds;
        this.ingots = ingots;
        this.regtime = regtime;
        this.status = status;
        this.vip = vip;
        this.userRole = userRole;
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", photo='" + photo + '\'' +
                ", experience=" + experience +
                ", golds=" + golds +
                ", ingots=" + ingots +
                ", regtime=" + regtime +
                ", status=" + status +
                ", vip=" + vip +
                ", userRole=" + userRole +
                ", roles=" + roles +
                '}';
    }
}
